/*************************************************************************************
 **																					**
 **	sx1272_defs.h			SX1272 RFIC Register Defines							**
 ** 																				**
 **************************************************************************************
 **																					**
 ** Written By:	Steve Montgomery													**
 **				Digital Six Laboratories LLC										**
 ** (c)2012,2013,2014 Digital Six Labs, All rights reserved							**
 **																					**
 **************************************************************************************/
//
// Revision History
//
// Revision		Date	Reviser		Description
// ===================================================================================
// ===================================================================================

//-----------------------------------------------------------------------------
// Header File Preprocessor Directive
//-----------------------------------------------------------------------------

#ifndef SX1272_DEFS_H
#define SX1272_DEFS_H

#define RegFifo 			0x00
#define RegOpMode 			0x01
#define RegBitrateMsb		0x02
#define RegBitrateLsb 		0x03
#define RegFdevMsb			0x04
#define RegFdevLsb			0x05
#define RegFrfMsb			0x06
#define RegFrfMid			0x07
#define RegFrfLsb			0x08
#define RegPaConfig			0x09
#define RegPaRamp			0x0a
#define RegOcp				0x0b
#define RegLna				0x0c
#define RegRxConfig			0x0d
#define RegRssiConfig		0x0e
#define RegRssiCollision	0x0f
#define RegRssiThresh		0x10
#define RegRssiValue		0x11
#define RegRxBw				0x12
#define RegAfcBw			0x13
#define RegOokPeak			0x14
#define RegOokFix			0x15
#define RegOokAvg			0x16
#define RegAfcFei			0x1a
#define RegAfcMsb			0x1b
#define RegAfcLsb			0x1c
#define RegFeiMsb			0x1d
#define RegFeiLsb			0x1e
#define RegPreambleDetect	0x1f
#define RegRxTimeout1		0x20
#define RegRxTimeout2		0x21
#define RegRxTimeout3		0x22
#define RegRxDelay			0x23
#define RegOsc				0x24
#define RegPreambleMsb		0x25
#define RegPreambleLsb		0x26
#define RegSyncConfig		0x27
#define RegSyncValue1		0x28
#define RegSyncValue2		0x29
#define RegSyncValue3		0x2a
#define RegSyncValue4		0x2b
#define RegSyncValue5		0x2c
#define RegSyncValue6		0x2d
#define RegSyncValue7		0x2e
#define RegSyncValue8		0x2f
#define RegPacketConfig1	0x30
#define RegPacketConfig2	0x31
#define RegPayloadLength	0x32
#define RegNodeAddr			0x33
#define RegBroadcastAddr	0x34
#define RegFifoThresh		0x35
#define RegSeqConfig1		0x36
#define RegSeqConfig2		0x37
#define RegTimerResol		0x38
#define RegTimer1Coef		0x39
#define RegTimer2Coef		0x3a
#define RegImageCal			0x3b
#define RegTemp				0x3c
#define RegLowBat			0x3d
#define RegIrqFlags1		0x3e
#define RegIrqFlags2		0x3f
#define RegDioMapping1		0x40
#define RegDioMapping2		0x41
#define RegVersion			0x42
#define RegAgcRef			0x43
#define RegAgcThresh1		0x44
#define RegAgcThresh2		0x45
#define RegAgcThresh3		0x46
#define RegPIIHop			0x4b
#define RegTcxo				0x58
#define RegPaDac			0x5a
#define RegPII				0x5c
#define RegPIILowPn			0x5e
#define RegFormerTemp		0x6c
#define RegBitRateFrac		0x70

// LoRa registers

#define RegLoraFifoAddrPtr		0x0d
#define RegLoraFifoTxBaseAddr	0x0e
#define RegLoraFifoRxBaseAddr	0x0f
#define RegLoraFifoRxCurrentAddr	0x10
#define RegLoraIrqFlagsMask		0x11
#define RegLoraIrqFlags			0x12
#define RegLoraRxNbBytes		0x13
#define RegLoraRxHeaderCntValueMsb	0x14
#define RegLoraRxHeaderCntValueLsb	0x15
#define RegLoraRxPacketCntValueMsb	0x16
#define RegLoraRxPacketCntValueLsb 	0x17
#define RegLoraModemStat		0x18
#define RegLoraPktSnrValue		0x19
#define RegLoraPktRssiValue		0x1a
#define RegLoraRssiValue		0x1b
#define RegLoraHopChannel		0x1c
#define RegLoraModemConfig1		0x1d
#define RegLoraModemConfig2		0x1e
#define RegLoraSymbTimeoutLsb	0x1f
#define RegLoraPreambleMsb		0x20
#define RegLoraPreambleLsb		0x21
#define RegLoraPayloadLength	0x22
#define RegLoraMaxPayloadLength	0x23
#define RegLoraHopPeriod		0x24
#define RegLoraFifoRxByteAddr	0x25




#endif

//-----------------------------------------------------------------------------
// End Of File
//-----------------------------------------------------------------------------
